


var ADMIN_APPLICATIONS = {
    web_route:'/admin',
    api_web_service:'http://127.0.0.1:8000/api_web_service/home/',
    //api_web_service:'http://www.m.cc/api/',

    get_api_web_service:function (name){
        return this.api_web_service+name;
    },

    //api_web_service:'http://www.m.cc/api/',
    get_web_route:function(url){
        return this._concat_route(this.web_route,url);
    },
    get_api_route:function(url){
        return this._concat_route(this.api_route,url);
    },
    _concat_route(route,url){
        if(url.length<1)
            return route;
        return route.concat(url)
    }
}